{// 引入标签库 }
<tagLib name="html" />
<div class="main">
<div class="main_title">{$deal_repay.user_id|get_user_name} 的《{$deal_repay.name}》 《第 {$deal_repay.l_key_index} 期》 账单</div>
<div class="blank5"></div>
<form name="edit" action="__APP__" method="post">
<table class="form" cellpadding=0 cellspacing=0>
	<tr>
		<td colspan=2 class="topTd"></td>
	</tr>
	<tr>
		<td class="item_title">借款</td>
		<td class="item_input">
			{$deal_repay.name}
		</td>
	</tr>
	
	<tr>
		<td class="item_title">期数</td>
		<td class="item_input">
			第 {$deal_repay.l_key_index} 期
		</td>
	</tr>
	
	<tr>
		<td class="item_title">借款人</td>
		<td class="item_input">
			{$deal_repay.user_id|get_user_name}
		</td>
	</tr>
	
	<tr>
		<td class="item_title">还款金额</td>
		<td class="item_input">
			{$deal_repay.repay_money|format_price}
		</td>
	</tr>
	
	<tr>
		<td class="item_title">逾期费用</td>
		<td class="item_input">
			{$deal_repay.impose_money|format_price}
		</td>
	</tr>
	
	<tr>
		<td class="item_title">管理费</td>
		<td class="item_input">
			{$deal_repay.manage_money|format_price}
		</td>
	</tr>
	
	<tr>
		<td class="item_title">逾期管理费</td>
		<td class="item_input">
			{$deal_repay.manage_impose_money|format_price}
		</td>
	</tr>
	<tr>
		<td class="item_title">还款状态</td>
		<td class="item_input">
			{$deal_repay.has_repay_status}
		</td>
	</tr>
	<tr>
		<td class="item_title">账单状态</td>
		<td class="item_input">
			{$deal_repay.site_bad_status}
		</td>
	</tr>
	
	<tr>
		<td class="item_title">账单操作</td>
		<td class="item_input" id="DealStatusBox">
			<select name="is_site_bad" >
				<option value="0" selected="selected">不操作</option>
				<if condition="$deal_repay['is_site_bad'] eq 1"><option value="1" >正常账单</option></if>
				<if condition="$deal_repay['is_site_bad'] eq 0"><option value="2" >本期坏账</option></if>
			</select>
		</td>
	</tr>
	
	<tr>
		<td class="item_title">操作备注:</td>
		<td class="item_input"><textarea class="textbox" id="msgarea" name="desc" disabled="true" style="width:400px;height:80px" ></textarea>
		</td>
	</tr>
	<if condition="$vo['status'] eq 0">
	<tr>
		<td class="item_title">&nbsp;</td>
		<td class="item_input">
			<!--隐藏元素-->
			<input type="hidden" name="id" value="{$deal_repay.id}" />
			<input type="hidden" name="{:conf("VAR_MODULE")}" value="Deal" />
			<input type="hidden" name="{:conf("VAR_ACTION")}" value="do_op_status" />
			<!--隐藏元素-->
			<input type="submit" class="button" value="{%OK}" />
			<input type="reset" class="button" value="{%RESET}" />
		</td>
	</tr>
	</if>
	<tr>
		<td colspan=2 class="bottomTd"></td>
	</tr>
</table>	 
</form>
</div>
<script type="text/javascript">
	jQuery(function(){
		$("#DealStatusBox select").change(function(){
			if($(this).val()=="1" || $(this).val()=="2"){
				$("#msgarea").attr("disabled",false);
			}
			else{
				$("#msgarea").attr("disabled",true);
			}
		});
	});
</script>
